package com.ycher.hellokotlin.first

/**
 * 父类
 * 参数在主构造函数
 */
open class Person1(val name: String, val age: Int) {

    fun eat() {
        println(name + " is eating. He is " + age + " years old.")
    }
}